package com.bit.book.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/t1")
    public int t1(){
        return 10/0;
    }

    @RequestMapping("/t2")
    public int[] t2(){
        int[] a = new int[1];
        a[0] = 1;
        a[1] =2;
        return a;
    }
}
